// types/role.ts
export interface MenuItem {
  id: number;
  business: string;
  title: string;
  pid: number;
  type: 'directory' | 'menu' | 'button';
  permission: string;
  sort?: number;
  icon?: string;
  path?: string;
  component?: string;
  status?: number;
  children?: MenuItem[];
}

export interface RoleItem {
  id?: number;
  roleName: string;
  roleKey: string;
  roleSort: number;
  status: number;
  remark?: string;
  menuIds?: number[];
  createTime?: string;
  updateTime?: string;
}

export interface RoleForm {
  id?: number;
  roleName: string;
  roleKey: string;
  roleSort: number;
  status: number;
  remark?: string;
  menuIds: number[];
}